const developmentConfig = {
  // 开发环境配置数据
  database: {
    host: '127.0.0.1',
    user: 'root',
    password: 'qweasd..',
    database: 'meeting',
    connectTimeout: 30000,
  },
};

const productionConfig = {
  // 生产环境配置数据
  database: {
    host: '149.127.214.217',
    user: 'Meeting',
    password: '42A53JdwG5tarnpM',
    database: 'meeting',
    connectTimeout: 30000,
  },
};

// 根据环境变量加载对应的配置
const env = process.env.NODE_ENV || 'development';

let config;
if (env === 'production') {
  config = productionConfig;
} else {
  config = developmentConfig;
}

module.exports = config;